<%=  periodically_call_remote :url => { :action => 'index' }, :frequency => '60' %>
<%= will_paginate(@documents)%>
<% @documents.each do |document| %>

  <p>
  <h3><%= link_to document.title, document %></h3>
  <%= document.description%>
  <%= document.stdev %>
  (Author: <%= document.author %>)
  <br/>
  <%= link_to 'Show', document %>
  <%= link_to 'Edit', edit_document_path(document) %>
  <%= link_to 'Destroy', document, :confirm => 'Are you sure?', :method => :delete %>
  <%= link_to 'Comments', document %>
  </p>

<% end %>
  <div id="pagination"></div>
<br />

<%= link_to 'New document', new_document_path %>

<%= will_paginate(@documents)%>